package com.example.junitdemo.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Hello {
    @GetMapping("/hello")
    public String sayhello(){
        System.out.println("ceshi-sayhello");
        return "sayhello";
    }

    public String saybye(){
        System.out.println("ceshi-bye");
        return "saybye";
    }
}
